 <template>
   <view :style="themeColor">
     <view class="page">
       <benben-popup v-model="popupShow1703658372620" :mask="true" :mask-close-able="false" mode='bottom'
         :z-index='999'>
         <!---flex布局flex布局开始-->
         <view class="flex flex-direction flex-wrap align-stretch benben-flex-layout releasePage_flex_0">
           <view class='flex flex-wrap align-start justify-between releasePage_fd0_0'>
             <view class='flex flex-direction flex-wrap align-center releasePage_fd0_0_c0' @tap.stop="gopublishFunc(1)">
               <image class='releasePage_fd0_0_c0_c0' mode="aspectFit" :src='STATIC_URL+"20.png"'></image>
               <text class='releasePage_fd0_0_c0_c1'>发个帖</text>
             </view>
             <view class='flex flex-direction flex-wrap align-center' @tap.stop="gopublishFunc(2)">
               <image class='releasePage_fd0_0_c0_c0' mode="aspectFit" :src='STATIC_URL+"21.png"'></image>
               <text class='releasePage_fd0_0_c0_c1'>提个问</text>
             </view>
             <view class='flex flex-direction flex-wrap align-center releasePage_fd0_0_c0' @tap.stop="gopublishFunc(3)">
               <image class='releasePage_fd0_0_c0_c0' mode="aspectFit" :src='STATIC_URL+"22.png"'></image>
               <text class='releasePage_fd0_0_c0_c1'>组个局</text>
             </view>
           </view>
           <!-- @tap.stop="popupShow1703658372620=false" -->
           <view class='flex flex-wrap align-center justify-center releasePage_fd0_1' @tap.stop="handleJumpDiy"
             data-type="back" data-url="1">
             <image class='releasePage_fd0_1_c0' mode="aspectFit" :src='STATIC_URL+"19.png"'></image>
           </view>
         </view>

         <!---flex布局flex布局结束-->

       </benben-popup>
       <benben-popup v-model="popupShow1705070444859" :mask="true" :mask-close-able="false" mode='center'
         :z-index='999'>
         <!---没有验证flex布局开始-->
         <view class="flex benben-flex-layout flex-wrap align-center">
           <view class='flex flex-direction flex-wrap align-center releasePage_fd1_0'>
             <text class='releasePage_fd1_0_c0'>提示</text>
             <text class='releasePage_fd1_0_c1'>您的学校还没有验证通过，暂不
               能发布，是否去进项学校验证？</text>
             <view class='flex align-center releasePage_fd1_0_c2'>
               <button class='releasePage_fd1_0_c2_c0' @tap.stop="cancelFunc()">取消</button>
               <button class='releasePage_fd1_0_c2_c1' @tap.stop="handleJumpDiy" data-type="navigateTo"
                 :data-url="`/pages/dlzc/addSchool/addSchool`">去验证</button>
             </view>
           </view>
         </view>

         <!---没有验证flex布局结束-->

       </benben-popup>


     </view>
   </view>
 </template>
 <script>
   import {
     validate
   } from '@/common/utils/validate.js'

   export default {
     components: {},


     data() {
       return {
         "popupShow1705070444859": false,
         "popupShow1703658372620": false,
         "data": {
           "invite_code": "",
           "address": "",
           "address_code": "",
           "hobby": "",
           "tags": "",
           "id": "",
           "userlevel_id": "",
           "mobile": "",
           "real_name": "",
           "avatar": "",
           "account": "",
           "email": "",
           "birthday": "",
           "gender": "",
           "create_time": "",
           "user_money": "",
           "freeze_money": "",
           "total_consumption_money": "",
           "score": "",
           "_mobile": "",
           "coupon": "",
           "collection_count": "",
           "browse_count": "",
           "total_money": "",
           "certified": "",
           "nickname": "",
           "is_pay_password": "",
           "follow_count": "",
           "is_close": "",
           "exp": "",
           "area_code": "",
           "jianjie": "",
           "level_name": "",
           "next_need_exp": "",
           "support_num": "",
           "follow_num": "",
           "fans_num": "",
           "user_label": [],
           "is_school": ""
         }
       };
     },
     computed: {
       themeColor() {
         return this.$store.getters.themeColor
       },

     },
     watch: {},
     onLoad(options) {
       this.getUserFunc()
     },
     onUnload() {

     },
     onReady() {

     },
     onShow() {
       this.getUserFunc()
       this.showUpsFunc()
     },
     onHide() {
       this.popupShow1705070444859 = false
     },
     onResize() {

     },
     onPullDownRefresh() {

     },
     onReachBottom(e) {

     },
     onPageScroll(e) {

     },
     methods: {
       //显示弹窗
       showUpsFunc() {
         this.popupShow1703658372620 = true;
       },
       //获取会员
       async getUserFunc() {
         //请求方法
         //数据验证

         let datadata = await this.$api.get(global.apiUrls.post5c78c4772da97, {

         });

         if (datadata.data.code != 1) {
           this.$message.info(datadata.data.msg);
           return
         }
         let infodata = datadata.data;
         this.data = infodata.data

       },
       //去发布
       gopublishFunc(type) {
         if (this.data.is_school == 0 || this.data.is_school == 1) {
           this.popupShow1705070444859 = true;
         } else {
           if (type == '1') {
             this.$urouter.navigateTo(`/pages/fabu/postApost/postApost?aid=0&type=1`);
           } else if (type == '2') {
             this.$urouter.navigateTo(`/pages/fabu/postApost/postApost?aid=0&type=2`);
           } else if (type == '3') {
             this.$urouter.navigateTo(`/pages/fabu/groupBureau/groupBureau?aid=0`);
           }
         }
       },
       //取消
       cancelFunc() {
         this.popupShow1705070444859 = false;
         this.popupShow1703658372620 = true;
       }
     }
   };
 </script>
 <style lang="scss" scoped>
   .page {
     width: 100vw;
     overflow-x: hidden;
     min-height: calc(100vh - var(--window-bottom));
     background: #F8F8F8;
     background-size: 100% auto;
   }

   .releasePage_flex_0 {
     background: url(image-path('18.png')) no-repeat;
     height: 536rpx;
     background-size: 100% auto;
   }

   .releasePage_fd0_1_c0 {
     width: 34rpx;
     height: 34rpx;
     border-radius: 0rpx 0rpx 0rpx 0rpx;
   }

   .releasePage_fd0_1 {
     margin: auto 0rpx 48rpx 0rpx;
   }

   .releasePage_fd0_0_c0_c1 {
     color: #333333;
     font-size: 28rpx;
     font-weight: 500;
     line-height: 40rpx;
     margin: 24rpx 0rpx 0rpx 0rpx;
   }

   .releasePage_fd0_0_c0_c0 {
     width: 120rpx;
     height: 120rpx;
     border-radius: 0rpx 0rpx 0rpx 0rpx;
   }

   .releasePage_fd0_0_c0 {
     margin: 48rpx 0rpx 0rpx 0rpx;
   }

   .releasePage_fd0_0 {
     margin: 90rpx 83rpx 0rpx 83rpx;
     padding: 0rpx 0rpx 0rpx 0rpx;
   }

   .releasePage_fd1_0_c2_c1 {
     background: rgba(255, 255, 255, 1);
     font-size: 32rpx;
     color: rgba(100, 80, 235, 1);
     width: 270rpx;
     height: 101rpx;
     line-height: 101rpx;
     font-weight: 500;
   }

   .releasePage_fd1_0_c2_c0 {
     border-right: 1px solid #eee;
     background: #fff;
     font-size: 32rpx;
     color: rgba(153, 153, 153, 1);
     width: 270rpx;
     height: 101rpx;
     line-height: 101rpx;
     font-weight: 400;
   }

   .releasePage_fd1_0_c2 {
     border-top: 1px solid #eee;
     margin: 51rpx 0rpx 0rpx 0rpx;
   }

   .releasePage_fd1_0_c1 {
     line-height: 44rpx;
     font-size: 28rpx;
     font-weight: 500;
     color: #333333;
     text-align: center;
     margin: 32rpx 40rpx 0rpx 40rpx;
   }

   .releasePage_fd1_0_c0 {
     line-height: 44rpx;
     font-size: 36rpx;
     font-weight: 700;
     color: #333333;
     margin: 40rpx 0rpx 0rpx 0rpx;
   }

   .releasePage_fd1_0 {
     background: #fff;
     width: 540rpx;
     background-size: 100% auto !important;
     border-radius: 16rpx 16rpx 16rpx 16rpx;
   }
 </style>
